home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacPeople 2003 February 1
/
MACPEOPLE-2003-02-01.ISO.7z
/
MACPEOPLE-2003-02-01.ISO
/
ぶらりオンラインウェアの旅
/
おしゃべり漂流記
/
xGates
/
xGates 1.2 Source Code.sit
/
xGates 1.2 Source Code
/
prototypes.h
< prev
next >
Wrap
Text File
|
2002-12-08
|
5KB
|
220 lines
/*
xGates -- Stunningly entertaining action game for MacOS Classic / MacOS X
Copyright (C) 2002 Sveinbjorn Thordarson <paladeen@soth.zoneit.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
prototypes.h
*/
#include "DrawSprocket.h"
////////////////////main.c////////////////////
//main stuff
int main(void);//why not indeed?
void QuitApp (void);
void SetMenuStatus (void);
//events
void HandleEvent (EventRecord *myEvent);
void HandleHLEvent (EventRecord *myEvent);
void HandleKey (EventRecord *theEvent);
void HandleMenus(long menuChoice);
void HandleMouse (EventRecord *myEvent);
void HandleClick (Point where);
void HandleUpdate (void);
void HandleOSEvent (EventRecord *myEvent);
//game screens
void DoSplashScreen (void);
void DoDisclaimer (void);
void DoMoreAbout (void);
void DoCredits (void);
void DoControls (void);
void DoAbout (void);
//high score
void ClearHighscoreList (void);
//apple event stuff
OSErr HandleAEQuitApp(const AppleEvent *theAppleEvent, AppleEvent *reply, long refCon);
void AppleEventInit(void);
OSErr MyGotRequiredParams(const AppleEvent *theAppleEvent);
////////////////////sound.c////////////////////
void ServiceMusic(void);
void SilenceChannel(SndChannelPtr theChannel);
void SilenceAllChannels (void);
void EndPause (void);
////////////////////graphics.c////////////////////
//game frame
void DrawGameBoard (void);
void DrawCornersToWorkMap (void);
void DrawPauseBarToWorkMap (void);
void DrawMacsToWorkMap (void);
void DrawBillsToWorkMap (void);
void DrawSteveToWorkMap (void);
void DrawPoofsToWorkMap (void);
void DrawDojsToWorkMap (void);
void DrawWeaponToWorkMap (void);
void DrawStatusBarToWorkMap (void);
void DrawFrameRateToWorkMap (long framerate);
void DrawBottomBarToWorkMap(void);
//screens
void DrawSothScreen (void);
void DrawHighScorePrompt (void);
void DrawGameWonScreen (void);
void DrawSplashScreen (void);
void DrawAboutScreen (void);
void DrawMoreAboutScreen (void);
void DrawControlsScreen (void);
void DrawCreditsScreen (void);
void DrawDisclaimerScreen (void);
//workmap ops
void ZoomBlitWorkMapToScreen (void);
void BlitWorkMapToScreen (void);
void EraseWorkMapRect (Rect *theRect);
void DrawBlackWorkMap (void);
//graphics
GWorldPtr LoadPicToGWorld(short picId);
////////////////////util.c////////////////////
unsigned char *pStrcpy(register unsigned char *dst, register unsigned char *src);
short absolute (short value);
short RandomBetween(short value1, short value2);
void Sleep (short seconds);
void ShadeRect (Rect *rect);
void FatalErrorAlert(Str255 errorString, Str255 expStr);
Rect* CenterRectInRect(Rect *smallRect, Rect *bigRect);
void DoAlert (Str255 errorString, Str255 expStr);
////////////////////prefs.c////////////////////
void LoadPrefs (void);
void ReadPrefs (FSSpec fileSpec);
void CreatePrefs (FSSpec fileSpec);
short WritePrefs (void);
////////////////////init.c////////////////////
void InitToolbox (void);
void InitSound (void);
void InitGraphics (void);
void InitMenus (void);
void DisplayReset(void);
////////////////////game.c////////////////////
void DoGameFrame (void);
void DoGetPlayerName (void);
//start/end
void NewGame (void);
void GameOver (void);
void EndGame (void);
void GameWon (void);
//level stuff
void StartLevel (short levelNum);
void EndLevel (void);
void UpOneLevel (void);
//pause
void PauseGame (void);
//macs
short CheckIfAllMacsHaveBecomeCorrupted (void);
void ResetAllMacsInLevel (short levelNum);
void ResetMacsInAllLevels (void);
Rect *GetMacRect (short macNum);
//doj
void DepartmentOfJusticeEffect (void);
void AddDoj (void);
void RemoveDoj (short dojNum);
//bill
void DoBillMoves (void);
void AddBill (void);
void RemoveBill (short billNum);
short FindClosestBillTarget (short billNum);
Rect* GetBillRect (short billNum);
//steve
void DoSteveMove (void);
void AddSteve (void);
void RemoveSteve (void);
short FindClosestSteveTarget (void);
Rect* GetSteveRect (void);
//poof
void AddPoof (short x, short y, short effectType);
void RemovePoof (short poofNum);
//eventz
Boolean CheckKeyMapForKey(KeyMap theKeyMap, short theKey);
void CheckKeysInGame (void);
void CheckForMouse (void);
//other
void DoExtraMoves (void);
void RandomGoodie (short chance);
short CheckPlaceInHighscoreList (void);
void AddScoreToHighScoreChart (void);
void DisplayInit (void);